﻿<%@ Page Language="c#" ContentType="text/html" ResponseEncoding="utf-8" Async="true" MasterPageFile="~/administration/list_private.master" Inherits="ACM.cmsarea08.Administration.Core.GesSezioni" %>
<%@ MasterType VirtualPath="~/administration/list_private.master" %>
<asp:Content ID="PageBody" Runat="server" ContentPlaceHolderID="MasterBody">
<h1><img src="../template/admimg/section_big.jpg" alt="Section Content Manager" /><% Response.Write(rm.GetString("ges_sections")); %></h1>
<div style="clear:both;">
<ptl:Itan_DataGrid id="insSection" runat="Server" Title="notitle" ShowTitle="true" autogeneratecolumns="false" ExtendedPager="true" PageNum="1" CurrentPage="1" SelectColumn="true" SelectColumnField="id" CheckingColumn="false" EOrdinabile="false" CssClass="DGridClass"  JavascriptSort="false"  >
<alternatingitemstyle BackColor="#e1e1e1"></alternatingitemstyle>
<columns>
<asp:BoundColumn DataField="id" Visible="false" ></asp:BoundColumn>
	<asp:TemplateColumn>
    	<headertemplate><%# rm.GetString("section_name") %></headertemplate>
    	<itemtemplate>
            <%# (Eval("lockid")!=null && Eval("lockid").ToString()!="-1")?"<a class=\"jmscmd\"><img border=\"0\" class=\"jmslock1_sm\" src=\"../template/img/spacer.gif\" alt=\"" + rm.GetString("lockedby") +" "+ Eval("lockedby").ToString() + "\" title=\"" + rm.GetString("lockedby") +" "+ Eval("lockedby").ToString() + "\" /></a>":"" %>
			<%#  ( 
			
			("<a title=\""+ (Eval("titolo").ToString()==""?rm.GetString("edit_section"):(rm.GetString("edit_section") + "(" + Eval("titolo") + ")")) +  "\" href=\"edit_sezione.aspx?new=0&idf=S"+ Eval("id") + "\" >"+
			Eval("titolo") +"</a>" + (Eval("tradotto_daNOME").ToString()==""?"":("<br/><span class=\"suggest\">" + rm.GetString("trans_of") + " <strong>" + Eval("tradotto_daNOME") + "</strong></span>")) )
			
			) %>
        </itemtemplate>
    </asp:TemplateColumn>
    <asp:TemplateColumn>
    	<headertemplate><%# rm.GetString("author") %></headertemplate>
    	<itemtemplate>
        	<%# Eval("autore").ToString() %>
            <%# (Eval("autore").ToString()!=Eval("autore2").ToString())?"<br/><span>("+rm.GetString("edited_by")+" " + Eval("autore2").ToString()+")</span>":""%>
        </itemtemplate>
    </asp:TemplateColumn> 
   	<asp:TemplateColumn>
    	<headertemplate><acronym title="<%# rm.GetString("enabled_disabled") %>">On/Off</acronym></headertemplate>
    	<itemtemplate>
        	<asp:LinkButton id="enable_me" CssClass="jmscmd" runat="server"></asp:LinkButton>
        </itemtemplate>
    </asp:TemplateColumn>
	<asp:TemplateColumn>
    	<headertemplate><%# rm.GetString("lang") %></headertemplate>
    	<itemtemplate>
        	<%# Eval("lingua") %>
        </itemtemplate>
    </asp:TemplateColumn>   
    <asp:TemplateColumn>
    	<headertemplate><%# rm.GetString("categories") %></headertemplate>
    	<itemtemplate>
		 <a href="gesCategorie.aspx?sez=<%# Eval("id") %>" title="<%# rm.GetString("goto") + " " + rm.GetString("categories") %>"><%# Eval("countcat") %></a>
        </itemtemplate>
    </asp:TemplateColumn>      
	<asp:TemplateColumn>
    	<headertemplate><%# rm.GetString("last_edit") %></headertemplate>
    	<itemtemplate>
        	<%# Eval("data_mod") %>
        </itemtemplate>
    </asp:TemplateColumn>     
     <asp:TemplateColumn>
    	<headertemplate><%# rm.GetString("status") %></headertemplate>
    	<itemtemplate>
        	<% if(RevMode && !IsPublisher){ %>
				<%# 	Eval("deleting").ToString()!="1"?"":rm.GetString("deleting") %>
            <% } else if(RevMode && IsPublisher){ %>
                    
                    <%# 	Eval("deleting").ToString()=="N"?((Eval("upd_id").ToString()!="-1")?rm.GetString("new_update")+"<br />":rm.GetString("new_item")+"<br />"):"" %>
                   
                    <%# 	Eval("deleting").ToString()!="1"?"":rm.GetString("deleting_alert") +"<br />" %>
            <% } %>
            <asp:LinkButton id="cancel_delete" runat="server"></asp:LinkButton>
            <% if(RevMode && IsPublisher){ %>
                <%# 	Eval("upd_id").ToString()=="-1"?"":"<br/>" + rm.GetString("update_of") + " <a href=\"edit_sezione.aspx?new=0&idf=S"+ Eval("id")+"\" title=\"" + rm.GetString("edit_original") + "\">" + Eval("upd_name").ToString() + "</a><br /><a href=\"edit_sezione.aspx?new=0&idf=S"+ Eval("id") + "&conf=1\" title=\""+rm.GetString("publish") + "\">"+rm.GetString("publish") + "</a>" %>
            <% } %>
            <asp:LinkButton id="publish" runat="server"></asp:LinkButton>
        </itemtemplate>
    </asp:TemplateColumn>        
</columns>
</ptl:itan_datagrid>
</div>




</asp:content>